{% extends "3col.html" %}

{% block title %}
{% if chartview.name %}{{ chartview.name }}{% else %}Unsaved chart{% endif %}
{% endblock %}

{% block head %}
{% include "chartview_js.html" %}
{% include "view_tools_js.html" %}
{% include "viewbuilder_basic_js.html" %}
{% include "annotation_builder_basic_js.html" %}
{% include "view_builder_full_js.html" %}
{% endblock %}

{% block leftcol %}
{% include "standard_sidebar.html" %}
{% endblock %}

{% block midcol %}
<div class="box">
<div class="title">
{% if chartview.name %}{{ chartview.name }} <span class="weaker"> by {{ chartview.author.display_name }}</span>
{% else %}Unsaved chart{% endif %}
</div>
<div class="content">
{% include "vieweditor_basic.html" %}
{% include "chartview.html" %}
</div>
</div>
{% if annotations %}
<div class="box">
<div class="title">Annotations</div>
<div class="content">
{% include "annotation_list.html" %}
</div>
</div>
{% endif %}
{% if user %}
<div class="box">
<div class="title">Add annotation</div>
<div class="content">
{% include "annotation_builder_basic.html" %}
</div>
</div>
{% endif %}
<div class="box">
<div class="title">Chart settings</div>
<div class="content">
{% include "view_builder_full.html" %}
</div>
</div>
{% endblock %}

{% block rightcol %}
{% include "view_tools.html" %}
{% include "standard_rightbar.html" %}
{% endblock %}
